package controllers

import "github.com/astaxie/beego"

type CMSController struct {
	beego.Controller
}

func (c *CMSController) URLMapping() {
	c.Mapping("StaticBlock", c.StaticBlock)
	c.Mapping("AllBlock", c.AllBlock)
}


// @router /staticblock/:key [get]
func (this *CMSController) StaticBlock() {

}

// @router /all/:key [get]
func (this *CMSController) AllBlock() {

}

//  注解路由

 //   @router  /cms/shan [get]
func (c *CMSController) AnyNameMethod() {   // *  Go 的语法
	c.Data["Website"] = "注解路由"
	c.Data["Email"] = "shanjunwei@weibo.com"
	c.TplName = "myview.tpl"
}